(1) Create and delete the project Open the STEP7 software, enter the SIMATIC Manager window, and pop up the project creation dialog box shown in Figure 13-3.4 through the main menu "File" - "New...". Ring Type Connecting Terminals Ring Type Connecting Terminals,Terminals,Connecting Terminals Taixing Longyi Terminals Co.,Ltd. , https://www.longyiterminals.com
In the "Name" column of the dialog box, you can enter the project name (such as test-01); in the "Storage location" column of the dialog box, you can directly enter the project storage location, or you can select the storage location by browsing (Browse...) . The "Type" column of the project automatically selects "Project".
After the input is completed, press the "OK" key to confirm, the project can be created by the SIMATIC Manager and the project editing page and the corresponding toolbar can be opened automatically (see Figure 13-3.5).
Through the selection of the main menu "File" - "Delete....", the corresponding delete item dialog box can be popped up. After selecting the item in the dialog box and confirming with the "OK" key, one or more unnecessary ones can be deleted. s project.
(2) Determine the plc type On the project editing page, right-click the project icon (test-01 in Figure 13-3.5) to pop up the project file editing submenu. After selecting "Insert New Object", you can select the serial number of the PLC in the submenu (see Figure 13 - 3.6, select "SIMATIC 300 Station") and click the "Confirm" button.
After the PLC type is selected, the PLC station icon "SIMATIC 300" is automatically added in the "Object display area" (right display area) of the project editing page. At the same time, the station is automatically connected to the lower-level device of the "test-01" project in the "Project Tree Display Area" on the left. By double-clicking the "test-01" icon, the connected station icon "SIMATIC 300" can be displayed.
(3) Determining the CPU type Any double-click on the SIMATIC 300 "Station Icon" in the "Project Tree Display Area" (left area) or "Object Display Area" (Right Area) of the project editing page, the "Object Display Area" is automatically converted to " The station hardware "Hardware icon is displayed.
Double-click the "Station Hardware" Hardware icon, and STEP7 automatically pops up the hardware configuration interface (see Figure 13-3.7).
You can open a list of all relevant hardware devices of the SIMATIC 300, such as C7, CP-300, CPU-300, FM-300, Gateway, IM-, by double-clicking the corresponding diagram of the hardware device list display area on the right side of the page (eg SIMATIC 300). 300, M7-EXTENSION, PS-300, RACK-300, SM-300, etc.
(4) Configuration hardware In order to select the CPU model, the hardware configuration of the PLC should be performed first.
The first step in configuring the hardware is to select the PLC's mounting rack (RACK). For example, for an S7-300 PLC, double-click to open the “RACK-300†folder, double-click the rack “Rail†icon, and the frame of the rack can be displayed in the hardware configuration page, ie in Figure 13-3.8 (0) ) UR.
Click to select the corresponding slot in the rack frame, and double-click to open the corresponding device folder in the hardware device list, double-click the corresponding module icon to install the module into the slot in the rack frame; In the lower display area, the specific model, specifications, and automatically assigned I/O addresses of the installed modules are displayed.
You can also use the "mouse drag and drop" method to configure the hardware device. At this time, you only need to use the mouse to hold the corresponding module in the device list, drag it to the corresponding slot position and release it.
When installing the module, pay attention to the actual installation requirements of the PLC. For example, the rack must be selected first; slot 1 can only be used to install the power module (PS-300); slot 2 can only be installed with the CPU module (CPU-300); slot 3 Only interface module (IM-300) can be installed. When an impermissible module is installed in the slot, STEP7 will automatically display an error message prompting the operator to perform the correct module installation.
When there is an error in the module model or configuration, you can re-install the module by right-clicking the corresponding slot and selecting “Delete†in the pop-up menu.
Figure 13 -3.8 shows a CPU315-2DP module with PS307/5A power module, two 32-point/DC24V input modules, one 16-point/DC24V input module, two 16-point/DC24V-0.5A output modules, 3 Hardware configuration diagram of an 8-point relay output module.
Figure 13-3.8 Hardware Configuration Page of STEP7
(5) Setting the module address During the hardware configuration process, the STEP7 module address assignment uses the automatic default value. As shown in Figure 13-3.8, the 6th slot is installed with a 16-point module, but actually takes up I8.0~111.7. 4-byte address (I10.0 to 111.7 free).
You can open the module property setting dialog box (see Figure 13-3.9) by selecting the corresponding module in the rack frame, clicking the right mouse button, and selecting the "Property Object Properties..." option in the pop-up module property menu. After selecting the Addresses tab, open the address setting page, and cancel the System selection option, enter the actual required address value in the Start field to redefine the address.
(6) Determine the symbol address You can open the symbol address editing dialog box by selecting the corresponding module in the rack frame, clicking the right mouse button, and selecting the "Edit Symbolic Names..." option in the pop-up module property menu. (See Figure 13-3.10) to define the symbolic address for the selected module I/O.
After the hardware configuration is complete, you can exit the hardware configuration page and save it to the project file.
After the hardware configuration, the project editing page will automatically add the CPU315-2DP device icon in the "Station Object Display Area" (right display area); at the same time, the CPU module is also automatically connected to the "Project Tree Display Area" on the left side. In the lower-level device of the "SIMATIC300", the station icon "SIMATIC 300" can be used to display the connected CPU315-2DP "CPU icon".
In the newly generated project, the Symbol Table, Blocks, and Source Files folders will be generated.